﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

[Serializable]
public class RecruitHero
{
    public int id;
}

public class RecruitHeroMgr
{
    public static Dictionary<long, RecruitHero> Dict { get; private set; }

    public static void Load()
    {
        List<RecruitHero> initRoles = StaticDataReader.LoadJsonFromFile<RecruitHero>("static_recruit_hero");
        if (initRoles != null)
        {
            Dict = new Dictionary<long, RecruitHero>(initRoles.Count);
            for(int i=0; i<initRoles.Count; i++)
            {
                Dict.Add(initRoles[i].id, initRoles[i]);
            }
        }
        else
        {
            Dict = new Dictionary<long, RecruitHero>();
        }
    }
}
